package com.sdweizan.sdk.bytedance.bean.withdraw;

import com.alibaba.fastjson.annotation.JSONField;
import com.sdweizan.sdk.bytedance.bean.BdBaseResponse;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class BdQueryMerchantBalanceResponse extends BdBaseResponse {

  @JSONField(name = "account_info")
  private AccountInfo accountInfo;

  @JSONField(name = "settle_info")
  private SettleInfo settleInfo;

  @JSONField(name = "merchant_entity")
  private Integer merchantEntity;

  @NoArgsConstructor
  @Data
  public static class AccountInfo {
    // 在途余额；CNY、单位分
    @JSONField(name = "online_balance")
    private Long onlineBalance;
    // 可提现余额；CNY、单位分
    @JSONField(name = "withdrawable_balacne")
    private Long withdrawableBalacne;
    // 冻结准备金余额；CNY、单位分
    @JSONField(name = "freeze_balance")
    private Long freezeBalance;
  }

  @NoArgsConstructor
  @Data
  public static class SettleInfo {
    // 结算类型枚举值：
    // 1: 银行卡结算
    // 2: 支付宝结算
    @JSONField(name = "settle_type")
    private Integer settleType;

    @JSONField(name = "settle_account")
    private String settleAccount;

    @JSONField(name = "bankcard_no")
    private String bankcardNo;

    @JSONField(name = "bank_name")
    private String bankName;
  }
}
